import request from '@/utils/request'

// 企业客户列表
export function clientList(params) {
  return request({
    url: '/enterprise/list',
    method: 'GET',
    params,
  })
}
// 企业客户详情
export function clientDetail(id) {
  return request({
    url: `/enterprise/get/${id}`,
    method: 'GET',
  })
}
// 企业客户审核
export function checkClient(id, params) {
  return request({
    url: `/enterprise/review/${id}`,
    method: 'GET',
    params,
  })
}
// 企业用户列表
export function userList(params) {
  return request({
    url: '/enterprise/operation/list',
    method: 'GET',
    params,
  })
}
// 企业用户详情
export function userDetail(id) {
  return request({
    url: `/enterprise/operation/${id}`,
    method: 'GET'
  })
}
